<?php

namespace app\api\library\index\deleteUserAddress;

use think\facade\Db;

/**
 *
 * User: chenzheng
 * Date: 2023/3/21
 * Time: 15:11
 */
class V
{
    public static function run($param)
    {
        
        $userId     = _checkEmptyParam($param[ 'userId' ], '用户ID不能为空');
        $id         = _checkEmptyParam($param[ 'id' ], '地址ID不能为空');
        if (false === Db::name('mall_address')->where('id', $id)->update(['delete_time'=>time()])) {
            _outPut(204, '', '删除失败');
        }
        _outPut(200,'','删除成功');
    }
}